<template>
	<view class="page">
		<view>
					<u-navbar  :autoBack="true" bgColor="#252928" safeAreaInsetTop placeholder="true">
						<view style="display: flex;" class="u-nav-slot" slot="left">
							<u-icon color="#ffffff" name="arrow-left" size="19"></u-icon>
							<view style="font-size: 36rpx;margin-left: 20rpx;">操作密码</view>
							
						</view>
					</u-navbar>
				</view>
		<view class="img">
			<u-icon name="https://img.xieling.top/password.png"  size="100"></u-icon>
		</view>
		<view class="text">
			<view class="text-top">
				
				<template v-if="!show">
					<text >未设置操作密码</text>
				</template>
				<template v-if="show">
					<text >已设置操作密码</text>
				</template>
			</view>
			<view class="text-center">
				
			</view>
			<view class="text-bottom">
				操作密码用于藏品转赠等操作
			</view>
		</view>
		
		<view class="ingo-cell" style="height: 80rpx;">
			
		<view @click="quit" style="font-weight: 600; color: #524830; line-height: 80rpx;text-align: center;">
			
			<template v-if="!real">
				<text @click="Gopass">实名认证并设置操作密码</text>
			</template>
			<template v-if="real">
				<text @click="GOsetpass">修改操作密码</text>
			</template>
		</view>
		
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show:false,
				real:false
			}
		},
		onLoad(e) {
			console.log(e)
			if(e.show){
				this.show=true,
				this.real=true
			}
		},
		methods: {
			Gopass(){
				uni.navigateTo({
					url:'../Setpass/Setpass'
				})
			},
			GOsetpass(){
				uni.navigateTo({
					url:'../Setpass/Setpass?type=2'
				})
			}
		}
	}
</script>

<style lang="scss">
.img{
	width: 100%;
	
	margin-top:200rpx ;
	display: flex;
	justify-content: center;
	
}
.text{
		color: #6b6d6c;
		display: flex;
		flex-direction: column;
		
		align-items: center;
		.text-top{
			margin-top: 150rpx;
			color: #FFFFFF;
			font-size: 48rpx;
		}
		.text-center{
			color: #FFFFFF;
			font-size: 48rpx;
			font-weight: 600;
		}
		.text-bottom{
			margin-top: 40rpx;
			color: #818382;
		}
	}
	.ingo-cell {
				height: 100rpx;
				background-color:#f3e1bd;
				border-radius:50rpx;
				width: 80%;
				margin: 0px auto;
				margin-top: 300rpx;
	
			}
</style>
